package com.suliao.home.serviceImpl.industry;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.suliao.home.entity.industry.ExhibitDO;
import com.suliao.home.entity.industry.ExhibitorDO;
import com.suliao.home.mapper.industry.ExhibitMapper;
import com.suliao.home.service.industry.ExhibitService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * @author： M1nG-CodeGenerator
 * @since： 2020-12-14 16:10:11
 * @description： 展品表 服务实现类
 * @version： 1.0
 */
@Service
public class ExhibitServiceImpl extends ServiceImpl<ExhibitMapper, ExhibitDO> implements ExhibitService {

    @Autowired
    private ExhibitMapper exhibitMapper;

    @Override
    public Page<ExhibitDO> listBrandStreet(Page page,String customClassName, String brandInitials) {
        return exhibitMapper.listBrandStreet(page,customClassName,brandInitials);
    }

    /**
     * 通过公司id去获取该公司的拳头展品
     * @param companyId
     * @return
     */
    @Override
    public List<ExhibitDO> getFistProductListByCompanyId(Integer companyId) {
        return exhibitMapper.getFistProductListByCompanyId(companyId);
    }

    /**
     * 通过公司id获取展品信息
     * @param corpId
     * @return
     */
    @Override
    public List<ExhibitDO> getExhibitListByCompanyId(Integer corpId) {
        return exhibitMapper.getExhibitListByCompanyId(corpId);
    }

    /**
     * 查询展品信息
     * @param
     * @return
     */
    @Override
    public List<ExhibitDO> getIndustryproduct() {
        return exhibitMapper.getIndustryproduct();
    }
}
